package leetcode.lt100;

import java.util.ArrayList;
import java.util.List;

class Solution_57 {
	public List<Interval> insert(List<Interval> intervals, Interval newInterval) {

		@SuppressWarnings("unused")
		List<Integer> list = new ArrayList<Integer>();
		
		if(newInterval.end<intervals.get(0).start){
			intervals.add(0,newInterval);
			return intervals;
		}
		
		Interval x;

		for (int i = 0; i < intervals.size(); i++) {
			x = intervals.get(i);
			if(newInterval.end>x.start){
				if(newInterval.start>x.start){
					
				}
			}
		}

		return intervals;
	}
}